package com.example.nirvana.dataStructure;

import lombok.Data;

/**
 * 树节点
 */
@Data
public class TreeNode {
    int key;
    int value;
    public TreeNode left; // 指向左节点的引用
    public TreeNode right; // 指向右节点的引用
    private TreeNode root;


    TreeNode(int key, int value) {
        this.key = key;
        this.value = value;
        this.left = null;
        this.right = null;
    }
}
